import request from "@/utils/request";

export function listSysNotice(data) {
    return request({
        url: '/system/sys_notice/list',
        method: 'get',
        params: data
    })
}

export function addSysNotice(data) {
    return request({
        url: '/system/sys_notice/insert',
        method: 'post',
        data: data
    })
}

export function deleteSysNotice(noticeId) {
    return request({
        url: '/system/sys_notice/delete/' + noticeId,
        method: 'delete'
    })
}

export function getSysNotice(noticeId) {
    return request({
        url: '/system/sys_notice/' + noticeId,
        method: 'get'
    })
}

export function updateSysNotice(data) {
    return request({
        url: '/system/sys_notice/update',
        method: 'put',
        data: data
    })
}
